

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body style="padding:0px;margin:0px">
    <div id="banner" style = "display: block;">
        <div style="width:180px;height:180px;margin:0 auto; margin-top:120px;background-image: url(static/logo.png);
        background-repeat:no-repeat;
        background-size: 100% 100%;"> </div>
        <div style="margin:0 auto;margin-top:12px;text-align:center;color:#555555;"> slogen:让区块连再次伟大 </div>
    </div>
    <iframe src ="http://pha.network" id="iframe" scrolling="no" onload="frameOnLoad()" onresize = "frameOnResize()" frameborder="0" style="width:100%;display: none;padding:0px;">
        <p>Your browser does not support iframes.</p>
    </iframe>
    <script language="javascript" type="text/javascript"> 
        function frameOnLoad(){
            changeFrameHeight()
        }
        function frameOnResize(){
            console.log("frameOnResize")
        }
        function changeFrameHeight(){
            var ifm= document.getElementById("iframe"); 
            ifm.height=window.screen.height+'px';;
        }

        window.onresize=function(){  
            changeFrameHeight();
        } 
        window.onload = function() {
            console.log("window onload")
        }
        window.setTimeout(function(){
            document.getElementById("banner").style.display = "none"
            document.getElementById("iframe").style.display = "block"
            changeFrameHeight()
        }, 2000)
    </script>
</body>
</html>
